@model List<CrazyToDo.Web.Models.MatterViewModel>
@{
    Layout = null;
}

<ul>
    @foreach (var item in Model)
    {
        if (item != null)
        {
            if (item.State == false)
            {
                <li>
                    <span class="input-group-addon">
                        <input type="checkbox" id="check" onclick="changeState(@item.Id)">
                    </span>
                    <span class="input-group-delete">
                        <img src="~/Home/img/删除(1).png" class="delete" onclick="Delete(@item.Id)" />
                    </span>
                    <p type="text" id="UnfinishMatter" class="form-control" onclick="details(@item.Id)"> @item.Content </p>

                </li>

            }
            else
            {

                <li>
                    <span class="input-group-addon">
                        <input type="checkbox" id="check" checked="checked" onclick="changeState(@item.Id)">
                    </span>
                    <span class="input-group-delete">
                        <img src="~/Home/img/删除(1).png" class="delete" onclick="Delete(@item.Id)" />
                    </span>
                    <p type="text" id="finishMatter" class="form-control" onclick="details(@item.Id)"> @item.Content </p>
                </li>
            }

        }


    }

</ul>







